package ch9.dongtai;

import ch9.Goods;
import ch9.Kuaidi;
import ch9.Shunfeng;

public class Daili {
	// com.sun.proxy.$Proxy0 implements kuaidi
	// 用Shunfeng完成功能
	public static void main(String[] args) {
		Shunfeng f = new Shunfeng();

		SchoolHandler h = new SchoolHandler(f);

		Kuaidi k = (Kuaidi) h.getProxy();
		System.out.println(k.getClass().getName() + "代理类的名字：");
		Goods g = new Goods("钻石", "赵连斌", "玛丽莲梦露", 18888888.0);
		k.send(g);
	}

}
